package com.zjx.mhxykey;

import android.app.Application;

import com.llw.network.INetworkRequiredInfo;
import com.llw.network.NetworkApi;

import okhttp3.Interceptor;

public class App extends Application {

    @Override
    public void onCreate() {
        super.onCreate();
        NetworkApi.init(new INetworkRequiredInfo() {
            @Override
            public String getAppVersionName() {
                return "";
            }

            @Override
            public String getAppVersionCode() {
                return "";
            }

            @Override
            public boolean isDebug() {
                return false;
            }

            @Override
            public Application getApplicationContext() {
                return App.this;
            }

            @Override
            public String getHost() {
                return BitmapConfig.host;
            }

            @Override
            public Interceptor getMorseBaseurl() {
                return null;
            }
        });
    }
}
